f53fe4991ceceb3f62973b8e82b92d7eb2e3ef47,src/org/exist/xquery/GeneralComparison.java,GeneralComparison,quickNodeSetCompare,#Sequence#,302
Before Change
// if key does not implement Indexable, we can't use the index
if(key instanceof Indexable && Type.subTypeOf(key.getType(), indexType)) {
if(truncation != Constants.TRUNC_NONE) {
LOG.debug("Using value index for key: " + Type.getTypeName(key.getType()) + ": "
+ key.getStringValue());
try {
result = context.getBroker().getValueIndex().match(docs, nodes, rightSeq.getStringValue().replace('%', '*'),
DBBroker.MATCH_WILDCARDS);
After Change
if(key instanceof Indexable && Type.subTypeOf(key.getType(), indexType)) {
if(truncation != Constants.TRUNC_NONE) {
if (context.isProfilingEnabled())
context.getProfiler().message(this, "Using value index for key: " + Type.getTypeName(key.getType()) + ": "
+ key.getStringValue());
try {
result = context.getBroker().getValueIndex().match(docs, nodes, rightSeq.getStringValue().replace('%', '*'),
DBBroker.MATCH_WILDCARDS);